
<style scoped>

.el-form {
    width: 40%;
    min-width:460px; 
}
</style>

<template>
  <el-form ref="form" :model="form" label-width="100px" class="el-form">
  <el-form-item label="网站名称：">
    <el-input v-model="form.title"  placeholder="请输入网站title" size="medium"></el-input>
  </el-form-item>
  <el-form-item label="网站关键词：">
    <el-input v-model="form.keywords"  placeholder="请输入网站keywords" size="medium"></el-input>
  </el-form-item>


  <el-form-item label="网站描述：">
    <el-input type="textarea" v-model="form.description"  placeholder="请输入网站description"  :rows="10"></el-input>
  </el-form-item>
  <el-form-item>
    <el-button type="primary" @click="onSubmit">立即更新</el-button>
    
  </el-form-item>
</el-form>
</template>

<script>
import * as Management from '../api/Management_config';


 export default {
    data() {
      return {
        form: {
          title: '',
          keywords: '',
          description: '',
          
        }
      }
    },
    mounted(){
      console.log(1111);
Management.edit.r().then(res => {
  this.form=res.data.data
  

})

    },
    methods: {
      onSubmit() {
        let _slef=this;
        Management.edit.r(_slef.form);
        //Management.edit(_slef.form)

      }
    }
  }
</script>